agents.anac.y2011.IAMhaggler2011
Class RandomBidCreator

java.lang.Object
  extended by agents.anac.y2011.IAMhaggler2011.RandomBidCreator
All Implemented Interfaces:
BidCreator

public class RandomBidCreator
extends java.lang.Object
implements BidCreator


Field Summary
protected  java.util.Random random
           
 
Constructor Summary
RandomBidCreator()
           
 
Method Summary
protected  void generateValue(java.util.HashMap<java.lang.Integer,Value> values, IssueDiscrete issue)
           
protected  void generateValue(java.util.HashMap<java.lang.Integer,Value> values, IssueInteger issue)
           
protected  void generateValue(java.util.HashMap<java.lang.Integer,Value> values, IssueReal issue)
           
 Bid getBid(UtilitySpace utilitySpace, double min, double max)
          Get a bid (within a utility range if possible).
 Bid getRandomBid(UtilitySpace utilitySpace, double min, double max)
          Get a random bid (within a utility range if possible).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected java.util.Random random
Constructor Detail

RandomBidCreator

public RandomBidCreator()
Method Detail

generateValue

protected void generateValue(java.util.HashMap<java.lang.Integer,Value> values,
                             IssueDiscrete issue)

generateValue

protected void generateValue(java.util.HashMap<java.lang.Integer,Value> values,
                             IssueReal issue)

generateValue

protected void generateValue(java.util.HashMap<java.lang.Integer,Value> values,
                             IssueInteger issue)

getRandomBid

public Bid getRandomBid(UtilitySpace utilitySpace,
                        double min,
                        double max)
Get a random bid (within a utility range if possible).

Parameters:
utilitySpace - The utility space to generate the random bid from.
min - The minimum utility value.
max - The maximum utility value.
Returns:
a random bid (within a utility range if possible).

getBid

public Bid getBid(UtilitySpace utilitySpace,
                  double min,
                  double max)
Description copied from interface: BidCreator
Get a bid (within a utility range if possible).

Specified by:
getBid in interface BidCreator
Parameters:
utilitySpace - The utility space to generate the bid from.
min - The minimum utility value.
max - The maximum utility value.
Returns:
a bid (within a utility range if possible).